﻿using Face8280WebSocketServer.Model.People;
using Face8280WebSocketServer.Utility.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Face8280WebSocketServer.Interface
{
    /// <summary>
    /// 人员操作服务
    /// </summary>
    public interface IPeopleService : IBaseService
    {
        /// <summary>
        /// 获取一个新的自动人员编号
        /// </summary>
        /// <returns></returns>
        long GetNewAutoEmployeeID();

        /// <summary>
        /// 导入人员
        /// </summary>
        /// <param name="peoples"></param>
        void InputPeople(List<FacePeople> peoples);


        /// <summary>
        /// 增加人员
        /// </summary>
        /// <param name="newPeople"></param>
        /// <returns></returns>
        JsonResultModel AddNew(FacePeople newPeople,Func<FacePeople, JsonResultModel> imageCallblack);


        /// <summary>
        /// 更新人员
        /// </summary>
        /// <param name="newPeople"></param>
        /// <returns></returns>
        JsonResultModel UpdatePeople(FacePeople newPeople);
        /// <summary>
        /// 删除所有人员
        /// </summary>
        void ClearPeople();
    }
}
